package com.hnzq.cloud.api;


import com.hnzq.cloud.balanceParam.AddBalanceParam;
import com.hnzq.cloud.balanceParam.CountBalanceParam;
import com.hnzq.cloud.balanceParam.FindBalanceParam;
import com.hnzq.cloud.balanceParam.UpdateBalanceParam;
import com.hnzq.cloud.dto.FindBalanceBySiteIdDto;
import com.hnzq.cloud.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "fresh-address",contextId = "BalanceApi",path = "freBalance")
public interface BalanceApi {
    @PostMapping("/addBalance")
    Result addBalance(@RequestBody AddBalanceParam addBalanceParam);
    @GetMapping("/findBalanceBySiteId")
    Result<FindBalanceBySiteIdDto> findBalanceBySiteId(@RequestBody FindBalanceParam findBalanceParam);
    @GetMapping("/countBalanceBySiteId")
    Result<String>countBalanceBySiteId(@RequestBody CountBalanceParam countBalanceParam);
    @PutMapping("/updateBalance")
    Result updateBalance(@RequestBody UpdateBalanceParam updateBalanceParam);
}
